# Copyright (C) 2001-2021 Free Software Foundation, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

# The 2001 copyright line above was added in 2015 based on James
# Youngman's best estimate of the original publication date of this
# file (it appeared in findutils release 4.1.7 but may have appeared
# in earlier releases which I don't have copies of).

# Essentially this test verifies that ls -i and find -printf %i produce
# the same output.
AUTOMAKE_OPTIONS=dejagnu
XARGS = ../xargs
XARGSFLAGS =
DEJATOOL = xargs
#EXTRA_DIST = config/*.exp inputs/*.xi xargs.*/*.exp xargs.*/*.xo

EXTRA_DIST_EXP = \
config/unix.exp \
xargs.gnu/0n3.exp \
xargs.gnu/delim-o.exp \
xargs.gnu/E_-0.exp \
xargs.gnu/empty_def-r.exp \
xargs.gnu/empty-r.exp \
xargs.gnu/idef-0.exp \
xargs.gnu/idef-s26-0.exp \
xargs.gnu/l1-0.exp \
xargs.gnu/l1_2-0.exp \
xargs.gnu/L2-0.exp \
xargs.gnu/L2_2-0.exp \
xargs.gnu/L3-0.exp \
xargs.gnu/n1-0.exp \
xargs.gnu/n2-0.exp \
xargs.gnu/n2-s21-0.exp \
xargs.gnu/n2-s21-x-0.exp \
xargs.gnu/n3-0.exp \
xargs.gnu/n3-s31-0.exp \
xargs.gnu/noeof-0.exp \
xargs.gnu/nothing.exp \
xargs.gnu/P3-n1-IARG.exp \
xargs.gnu/r.exp \
xargs.gnu/s118-0.exp \
xargs.gnu/s14_2-0.exp \
xargs.gnu/s14-0.exp \
xargs.gnu/s15-0.exp \
xargs.gnu/s25-0.exp \
xargs.gnu/space-0.exp \
xargs.gnu/space-r.exp \
xargs.gnu/space-t-0.exp \
xargs.posix/EEOFb.exp \
xargs.posix/EEOFe.exp \
xargs.posix/EEOF.exp \
xargs.posix/E_.exp \
xargs.posix/E_-IARG.exp \
xargs.posix/arg_max_32bit_linux_bug.exp \
xargs.posix/arg_max_64bit_linux_bug.exp \
xargs.posix/childfail.exp \
xargs.posix/empty_def.exp \
xargs.posix/empty.exp \
xargs.posix/hithere.exp \
xargs.posix/IARG-E_.exp \
xargs.posix/IARG.exp \
xargs.posix/IARG-s15.exp \
xargs.posix/L2_2.exp \
xargs.posix/uc_L2.exp \
xargs.posix/L2-n2.exp \
xargs.posix/L3.exp \
xargs.posix/n1.exp \
xargs.posix/n2.exp \
xargs.posix/n2-s21.exp \
xargs.posix/n2-s21-x.exp \
xargs.posix/n3.exp \
xargs.posix/n3-s31.exp \
xargs.posix/noeof.exp \
xargs.posix/quotes.exp \
xargs.posix/rc-123.exp \
xargs.posix/rc-124.exp \
xargs.posix/rc-125.exp \
xargs.posix/rc-126.exp \
xargs.posix/rc-127.exp \
xargs.posix/s118.exp \
xargs.posix/s14.exp \
xargs.posix/s14_2.exp \
xargs.posix/s15.exp \
xargs.posix/s25.exp \
xargs.posix/s42.exp \
xargs.posix/s470.exp \
xargs.posix/s48.exp \
xargs.posix/s6.exp \
xargs.posix/savannah-11865.exp \
xargs.posix/space.exp \
xargs.posix/space-I.exp \
xargs.posix/sv-bug-18714.exp \
xargs.posix/sv-bug-18714b.exp \
xargs.posix/sv-bug-20273.exp \
xargs.posix/unmatched2.exp \
xargs.posix/unmatched.exp \
xargs.posix/unmatched-n2-x.exp \
xargs.sysv/eEOF.exp \
xargs.sysv/e.exp \
xargs.sysv/empty_def-t.exp \
xargs.sysv/empty-t.exp \
xargs.sysv/eof1.exp \
xargs.sysv/iARG.exp \
xargs.sysv/idef.exp \
xargs.sysv/idef-s26.exp \
xargs.sysv/iquotes.exp \
xargs.sysv/l1_2.exp \
xargs.sysv/l1.exp \
xargs.sysv/l1n4.exp \
xargs.sysv/lc_l2.exp \
xargs.sysv/s25-t.exp \
xargs.sysv/sv-bug-18713.exp \
xargs.sysv/space-t.exp \
xargs.sysv/trace.exp



EXTRA_DIST_XO = \
xargs.gnu/0n3.xo \
xargs.gnu/E_-0.xo \
xargs.gnu/delim-o.xo \
xargs.gnu/idef-0.xo \
xargs.gnu/idef-s26-0.xo \
xargs.gnu/l1-0.xo \
xargs.gnu/l1_2-0.xo \
xargs.gnu/L2-0.xo \
xargs.gnu/L2_2-0.xo \
xargs.gnu/L3-0.xo \
xargs.gnu/n1-0.xo \
xargs.gnu/n2-0.xo \
xargs.gnu/n2-s21-0.xo \
xargs.gnu/n2-s21-x-0.xo \
xargs.gnu/n3-0.xo \
xargs.gnu/n3-s31-0.xo \
xargs.gnu/noeof-0.xo \
xargs.gnu/nothing.xo \
xargs.gnu/P3-n1-IARG.xo \
xargs.gnu/r.xo \
xargs.gnu/s118-0.xo \
xargs.gnu/s14-0.xo \
xargs.gnu/s15-0.xo \
xargs.gnu/s25-0.xo \
xargs.gnu/space-0.xo \
xargs.gnu/space-t-0.xo \
xargs.posix/EEOFb.xo \
xargs.posix/EEOFe.xo \
xargs.posix/EEOF.xo \
xargs.posix/E_-IARG.xo \
xargs.posix/empty_def.xo \
xargs.posix/empty.xo \
xargs.posix/E_.xo \
xargs.posix/hithere.xo \
xargs.posix/IARG-E_.xo \
xargs.posix/IARG-s15.xo \
xargs.posix/IARG.xo \
xargs.posix/L2_2.xo \
xargs.posix/L2-n2.xo \
xargs.posix/uc_L2.xo \
xargs.posix/L3.xo \
xargs.posix/n1.xo \
xargs.posix/n2-s21.xo \
xargs.posix/n2-s21-x.xo \
xargs.posix/n2.xo \
xargs.posix/n3-s31.xo \
xargs.posix/n3.xo \
xargs.posix/noeof.xo \
xargs.posix/quotes.xo \
xargs.posix/rc-123.xo \
xargs.posix/s118.xo \
xargs.posix/s14.xo \
xargs.posix/s15.xo \
xargs.posix/s25.xo \
xargs.posix/s42.xo \
xargs.posix/s470.xo \
xargs.posix/s48.xo \
xargs.posix/savannah-11865.xo \
xargs.posix/space.xo \
xargs.posix/sv-bug-18714.xo \
xargs.posix/sv-bug-18714b.xo \
xargs.posix/sv-bug-20273.xo \
xargs.posix/unmatched2.xo \
xargs.posix/unmatched.xo \
xargs.sysv/eEOF.xo \
xargs.sysv/empty_def-t.xo \
xargs.sysv/empty-t.xo \
xargs.sysv/eof1.xo \
xargs.sysv/e.xo \
xargs.sysv/iARG.xo \
xargs.sysv/idef-s26.xo \
xargs.sysv/idef.xo \
xargs.sysv/iquotes.xo \
xargs.sysv/l1_2.xo \
xargs.sysv/l1n4.xo \
xargs.sysv/l1.xo \
xargs.sysv/lc_l2.xo \
xargs.sysv/s25-t.xo \
xargs.sysv/sv-bug-18713.xo \
xargs.sysv/space-t.xo \
xargs.sysv/trace.xo



EXTRA_DIST_XE = \
xargs.gnu/P3-n1-IARG.xe \
xargs.gnu/space-t-0.xe \
xargs.posix/L2-n2.xe \
xargs.posix/rc-123.xe \
xargs.sysv/empty_def-t.xe \
xargs.sysv/empty-t.xe \
xargs.sysv/l1n4.xe \
xargs.sysv/s25-t.xe \
xargs.sysv/space-t.xe \
xargs.sysv/trace.xe


EXTRA_DIST_XI = \
inputs/16383-ys.xi \
inputs/32767-ys.xi \
inputs/blank.xi \
inputs/empty.xi \
inputs/eof_-0.xi \
inputs/EOFb.xi \
inputs/EOFe.xi \
inputs/eofstr.xi \
inputs/eof_.xi \
inputs/eof1.xi \
inputs/EOF.xi \
inputs/ett.xi \
inputs/files0.xi \
inputs/files.xi \
inputs/foobar.xi \
inputs/formfeeds.xi \
inputs/ftt.xi \
inputs/helloworld.xi \
inputs/items-0.xi \
inputs/items.xi \
inputs/ldata-0.xi \
inputs/ldatab-0.xi \
inputs/ldatab.xi \
inputs/ldata.xi \
inputs/lines.xi \
inputs/noeof-0.xi \
inputs/noeof.xi \
inputs/Pdata.xi \
inputs/quotes.xi \
inputs/space.xi \
inputs/stairs-0.xi \
inputs/stairs2-0.xi \
inputs/stairs2.xi \
inputs/stairs.xi \
inputs/stt.xi \
inputs/sv-bug-20273.xi \
inputs/unmatched2.xi \
inputs/unmatched.xi \
inputs/verticaltabs.xi


EXTRA_DIST = $(EXTRA_DIST_EXP) $(EXTRA_DIST_XO) $(EXTRA_DIST_XI) $(EXTRA_DIST_XE)



# DIST_SUBDIRS = config inputs xargs.gnu xargs.posix xargs.sysv

CLEANFILES = *.log *.sum site.exp site.bak

FORCE:

checklists:
	cd $(srcdir) && \
	( find config inputs xargs.gnu xargs.posix xargs.sysv \( -name "*.exp" -o -name "*.xo" -o -name "*.xi" -o -name "*.xe" \) -print ; \
	  ls $(EXTRA_DIST_XI)  ; \
	  ls $(EXTRA_DIST_XE)  ; \
	  ls $(EXTRA_DIST_XO)  ; \
	  ls  $(EXTRA_DIST_EXP)  ; ) | \
	sort | uniq -c | awk '$$1 != 2 { print; }'
